package com.downbox.repository;

import com.downbox.domain.QuotaDaily;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.Optional;

/**
 * 每日配额仓库接口
 */
@Repository
public interface QuotaDailyRepository extends JpaRepository<QuotaDaily, Long> {
    /**
     * 根据用户ID和日期查询当日配额
     */
    Optional<QuotaDaily> findByUidAndDate(Long uid, LocalDate date);
}